<template>
  <div class="readPage">
    <div class="part1">
      <div class="part11">{{ formText.title }}</div>
      <div class="part12">更新时间：{{ formText.updateTime }}</div>
      <u-parse :html="formText.content"></u-parse>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      popupshowType: 2,
      formText: {},
    }
  },
  onLoad(i) {
    this.popupshowType = i.type
    this.article_list()
  },
  methods: {
    article_list() {
      // 2是协议，3是隐私
      this.$api(
        'article_list',
        {
          type: this.popupshowType,
        },
        'get'
      ).then((res) => {
        this.formText = res.data
      })
    },
  },
}
</script>

<style lang="scss" scoped>
.readPage {
  .part11 {
    font-size: 50rpx;
    margin-bottom: 30rpx;
    font-weight: bold;
    color: #000;
    text-align: center;
  }
  .part12 {
    font-size: 28rpx;
    margin-bottom: 30rpx;
    color: #999;
    text-align: right;
  }
  .part1 {
    padding: 0 20rpx 40rpx;
    background: #fff;
  }
}
</style>
